package filescript;

public class ExpressionTreeNode {
	
	Object _leftNode;
	Object _rightNode;
	Object _item;
	Object _miscItem;
	
	protected ExpressionTreeNode(Object left, Object right,Object item) {
		_leftNode = left;
		_rightNode = right;
		_item = item;
		_miscItem = null;
	}
	
	protected ExpressionTreeNode(String string) {
		_item = string;
		_leftNode = null;
		_rightNode = null;
		_miscItem = null;
	}
	
	protected Object getLeftNode() {
		return _leftNode;
	}
	
	protected Object getRightNode() {
		return _rightNode;
	}
	
	protected Object getItem() {
		return _item;
	}
	
	protected void setItem(Object item) {
		_item = item;
	}
	
	protected Object getMiscItem() {
		return _miscItem;
	}
	
	protected void setMiscItem(Object item) {
		_miscItem = item;
	}
	
	protected boolean isLeaf() {
		if(_leftNode==null && _rightNode==null) {
			return true;
		} else {
			return false;
		}
	}
	
}
